package org.jeecg.modules.bj.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.additional.update.impl.UpdateChainWrapper;
import org.jeecg.modules.bj.entity.Ygdab;
import org.jeecg.modules.bj.mapper.YgdabMapper;
import org.jeecg.modules.bj.service.IYgdabService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: YGDAB
 * @Author: jeecg-boot
 * @Date:   2021-10-22
 * @Version: V1.0
 */
@Service
@DS("bj")
public class YgdabServiceImpl extends ServiceImpl<YgdabMapper, Ygdab> implements IYgdabService {
    @Resource
    private YgdabMapper ygdabMapper;

    @Override
    public List getLaoZiGongZiByUserId( String userId){
        return ygdabMapper.getLaoZiGongZiByUserId(userId);
    }

    @Override
    public Ygdab getYadabById(String id){
        return ygdabMapper.selectById(id);
    }
}
